<?php
/**
 * Created by PhpStorm.
 * User: User
 * Date: 2017/10/30
 * Time: 18:31
 */

class personClass
{

}

class student extends personClass{

}

//判断对象是否属于该类或该类是此对象的父类，返回值为
$person = new personClass();
$student=new student();
var_dump(is_a($person,"personClass"));
var_dump(is_a($student,"person"));
var_dump(is_a($person,"student"));
var_dump(is_a($student,"student"));